package net.cn_su.sharpeyes.orgchoose;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

import net.cn_su.sharpeyes.R;
import net.cn_su.sharpeyes.beans.Organization;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

/**
 * Created by Overlord on 2016/08/16.
 * Singularity Universe
 */
@EViewGroup(R.layout.item_list_village)
public class VillageListItem extends LinearLayout {

    @ViewById
    protected TextView textView;

    public VillageListItem(Context context) {
        super(context);
    }

    public void bindDate(Organization org){
        textView.setText(org.getName());
    }
}
